<script type="text/javascript">

$(document).ready(function(){
	parent.showButton("save");
    $('#birth').datepicker({
    	duration: '',
    	dateFormat: 'yy-mm-dd',
        showTime: false,
        changeYear: true,
        changeMonth: true,
        constrainInput: true,
        firstDay:0,
        time24h: false
     });
    KE.show({
        id : 'ke_remark',
        items : [
  				'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
  				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
  				'insertunorderedlist', '|', 'emoticons', 'image', 'link', 'unlink']
    });
});

function doButton(btn){
    if(btn == "save"){
    	KE.sync('ke_remark');
        $("#form").submit();
	}
}
</script>

  <div class="content" style="min-height:50px;">
    <form action="__URL__/index_act/act/{$act}" method="post" enctype="multipart/form-data" id="form">
    <input type="hidden" name="act" id="act" value="{$act}" />
    <input type="hidden" name="id" value="{$info.id}" />
      <table class="form">
        <tr>
          <td><span class="required">*</span>姓名：</td>
          <td>{$info.name}</td>
        </tr>
        
        <tr>
          <td><span class="required">*</span>性别：</td>
          <php>
          	if($info['sex'] == 1){
          		$sex1 = "checked";
          	}elseif($info['sex'] == 2){
          		$sex2 = "checked";
          	}else{
          		$sex3 = "checked";
          	}
          </php>
          <td><label><input type="radio" name="sex" value="1" {$sex1} />男</label>　　
	          <label><input type="radio" name="sex" value="2" {$sex2} />女</label>　　
	          <label><input type="radio" name="sex" value="０" {$sex3} />保密</label>
          </td>
        </tr>
        <tr>
          <td><span class="required">*</span>头像：</td>
          <td>
          	<if condition="$info.face neq ''"><img height="200" src="__PUBLIC__/Uploads/{$info.face}"><br></if>
          	<input type="file" id="face" name="face" value="" />
          </td>
        </tr>
        <tr>
          <td><span class="required">*</span>生日：</td>
          <td><input type="text" id="birth" name="birth" value="{$info.birth}" /></td>
        </tr>
        <tr>
          <td><span class="required">*</span>邮箱：</td>
          <td><input type="text" id="email" name="email" value="{$info.email}" /></td>
        </tr>
        <tr>
          <td><span class="required">*</span>电话：</td>
          <td><input type="text" id="mobile" name="mobile" value="{$info.mobile}" /></td>
        </tr>
        <tr>
          <td><span class="required">*</span>个人简介：</td>
          <td class=""><textarea id="ke_remark" name="remark" style="width:480px;height:300px;">{$info.remark}</textarea></td>
        </tr>
      </table>
    </form>
  </div>